package team.se.tms.dto;


import lombok.Data;
import team.se.tms.annotation.Regex;
import team.se.tms.po.LabelInfo;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * LabelLib实体类
 *
 * @author johnny
 * @date 2018/12/3
 */
@Data
public class LabelLibDetail implements Serializable,Cloneable{
    @Regex("^[A-Za-z0-9]{16}$")
    private String labelLibId;
    @Regex("^[\\u4e00-\\u9fa5]{1,8}$")
    private String labelLibName;
    private ArrayList<LabelInfo> labelList;


    @Override
    public Object clone(){
        LabelLibDetail labelLibDetail = null;
        try {
            labelLibDetail=(LabelLibDetail)super.clone();
            labelLibDetail.labelList = (ArrayList<LabelInfo>)labelList.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return labelLibDetail;
    }
}
